package com.nw.dsl4j.samples.resolutions;

import com.nw.dsl4j.annotations.EmbeddedRule;
import com.nw.dsl4j.annotations.Resolve;
import com.nw.dsl4j.annotations.Rule;
import com.nw.dsl4j.grammar.ID;
import com.nw.dsl4j.grammar.NUMBER;

@Rule(pattern="$item $COMMA $quantity")
public class ItemEntry {
	@Resolve
	@EmbeddedRule(rule=ID.class)
	Item item;
	
	NUMBER quantity;

	public NUMBER getQuantity() {
		return quantity;
	}

	public void setQuantity(NUMBER quantity) {
		this.quantity = quantity;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}
}
